package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingMorning;
import com.api.shopapi.mapper.NursingSchedulingMorningMapper;
import com.api.shopapi.service.NursingSchedulingMorningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("NursingSchedulingMorningServiceImplOne")
public class NursingSchedulingMorningServiceImpl implements NursingSchedulingMorningService {
    @Autowired
    private NursingSchedulingMorningMapper nursingSchedulingMorningMapper;


    @Override
    public int insert(NursingSchedulingMorning nursingSchedulingMorning) {
        return nursingSchedulingMorningMapper.insert(nursingSchedulingMorning);
    }

    @Override
    public int updateByNursingSchedulingMorningCode(NursingSchedulingMorning nursingSchedulingMorning) {
        return nursingSchedulingMorningMapper.updateByNursingSchedulingMorningCode(nursingSchedulingMorning);
    }

    @Override
    public int deleteByNursingSchedulingMorningCode(String nursingSchedulingMorningCode) {
        return nursingSchedulingMorningMapper.deleteByNursingSchedulingMorningCode(nursingSchedulingMorningCode);
    }

    @Override
    public NursingSchedulingMorning getByNursingSchedulingMorningCode(String nursingSchedulingMorningCode) {
        return nursingSchedulingMorningMapper.getByNursingSchedulingMorningCode(nursingSchedulingMorningCode);
    }

    @Override
    public NursingSchedulingMorning getByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingMorningMapper.getByNursingSchedulingCode(nursingSchedulingCode);
    }
}
